<?php

namespace App\Models\Game;

use App\Scopes\PlayerScope;
use Illuminate\Database\Eloquent\Model;

class PlayerGamedata extends Model
{
    protected $connection = 'mysql_game';
    protected $table = 'player_gamedata';
    public $timestamps = false;

    /**
     * 模型的「启动」方法.
     */
    protected static function boot()
    {
        parent::boot();
        static::addGlobalScope(new PlayerScope());
    }
}
